package com.androinject.core.factory.input;

import java.io.IOException;
import java.io.InputStream;

public class InputStreamInputSource implements InputSource {
	
	private InputStream inputStream;
	
	public InputStreamInputSource(InputStream inputStream) {
		this.inputStream = inputStream;
	}

	@Override
	public InputStream getInputStream() {
		return this.inputStream;
	}

	@Override
	public void close() {
		try {
			this.inputStream.close();
		} catch (IOException e) { }
	}

}
